function [IA_Relation] = IA_Relation_From_Number(num)
%IA_Relation_From_Number Number to Relation
%   Takes a number and converts to a relationship structure.
  while num >= 2^13
    num = mod(num, 2^13);
  end

  IA_Relation.set = zeros(2, 7);
  for row = 1:2
    for col = 1:7
      if row ~= 2 || col ~= 7
        IA_Relation.set(row, col) = mod(num, 2);
        num = floor(num / 2);
      end
    end
  end
  
  IA_Relation.set(2, 7) = IA_Relation.set(1, 7);
end